package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 报价-项目商家关联表(ItemSchemeMerchant)表实体类
 *
 * @author yxy
 * @since 2024-11-12 09:45:59
 */
@Data
@ApiModel("报价-项目商家关联表")
@TableName(value = "tb_item_scheme_merchant")
public class ItemSchemeMerchant extends Model<ItemSchemeMerchant> implements Serializable {
    private static final long serialVersionUID = 848496046342732062L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("商家id")
    private Long merchantId;

    @ApiModelProperty("商家名称")
    @TableField(exist = false)
    private String merchantName;

    @ApiModelProperty("服务ID")
    private Long serveId;

    @ApiModelProperty("方案id")
    private Long schemeId;

    @ApiModelProperty("方案名称")
    @TableField(exist = false)
    private String schemeName;

    @ApiModelProperty("报价状态0已报价  1待报价 2接受报价")
    private Integer status;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("用户名称")
    @TableField(exist = false)
    private String userName;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("修改时间")
    private Date updateTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("截止时间")
    @TableField(exist = false)
    private Date deadlineTime;

    @ApiModelProperty("报价有效期")
    @TableField(exist = false)
    private String indate;
}
